package com.ruoyi.web.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.web.domain.mes.MesPaper;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 入库详细信息对象 mes_warehousing_detail
 * 
 * @author wxt
 * @date 2024-01-15
 */
@Data
public class MesWarehousingDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 入库单id */
    //@Excel(name = "入库单id")
    private Long warehousingid;

    /** 纸张id */
    //@Excel(name = "纸张id")
    private Long paperid;

    /** 入库单编码 */
    @Excel(name = "入库单编码")
    private String warehousingCode;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date warehousingDate;

    /** 纸张类型 */
    @Excel(name = "纸张类型", combo = {"客料", "厂料"}, readConverterExp = "1=客料,2=厂料")
    private String paperType;
    /** 客户编码 */
    @Excel(name = "单位编码")
    private String customCode;
    @Excel(name = "送货名称")
    private String customName;
    @Excel(name = "纸张编码")
    private String code;
    @Excel(name = "纸张名称")
    private String name;
    //规格型号
    @Excel(name = "规格", combo = {"650*1235", "710*1000","787*1092","787*1100","830*1168","770*1092","850*1168","840*1246","850*1170","850*1185",
            "850*1190","860*1190","870*1230","875*1178","880*1230","889*1194","880*1240","889*1240","889*1246",
            "890*1240","900*1230","900*1240","914*1246","889*1230"},
            readConverterExp = "1=650*1235,2=710*1000,3=787*1092,4=787*1100,5=830*1168,33=770*1092,6=850*1168,22=840*1246,7=850*1170,8=850*1185," +
                    "9=850*1190,10=860*1190,11=870*1230,12=875*1178,13=880*1230,14=889*1194,21=880*1240,15=889*1240,16=889*1246," +
                    "17=890*1240,18=900*1230,19=900*1240,20=914*1246,50=889*1230")
    public String specs;
    @Excel(name = "幅宽")
    public String longWide;

    //品牌
    @Excel(name = "品牌", combo = {"金海","太阳","晨鸣","亚太","银河","金蔡伦","华泰","青苑","方源","龙丰","华中","博达","广东华泰","岳阳"}, readConverterExp = "1=金海,2=太阳,3=晨鸣,4=亚太,5=银河,6=金蔡伦,7=华泰,8=青苑,9=方源,10=龙丰,11=华中,12=博达,13=广东华泰,14=岳阳")
    public String brand;
    @Excel(name = "单位", combo = {"公斤", "吨", "张", "令"}, readConverterExp = "1=公斤,2=吨,3=张,4=令")
    private String unit;

    @Excel(name = "克重")
    private BigDecimal weight;

    /** 令数 */
    @Excel(name = "令数")
    private Double lnumber;

    /** 件数 */
    @Excel(name = "件数")
    private Long jnumber;

    /** 零头 */
    @Excel(name = "零头")
    private BigDecimal odd;

    /** 总数量 */
    @Excel(name = "总数量")
    private BigDecimal total;

    private BigDecimal totalSum; // 总数量合计

        /** 送货人 */
    @Excel(name = "送货人")
    private String deliveryMan;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNumber;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    private MesPaper MesPaper;
    private MesWarehousingInfo MesWarehousingInfo;


}
